package com.tim.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 作者：Tim
 * 时间：2021/4/29 11:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CarStall {
    private Integer id;
    private String carPlot;
    private String stallNum;
    private String stallName;
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss",timezone = "GMT+8")
    private Date creatorTime;
    private Integer status;
    @JsonIgnore
    private String file;

    public CarStall(Integer id, String carPlot, String stallNum, String stallName, Date creatorTime, Integer status) {
        this.id = id;
        this.carPlot = carPlot;
        this.stallNum = stallNum;
        this.stallName = stallName;
        this.creatorTime = creatorTime;
        this.status = status;
    }
}
